<?php 


  /**
  * Login model 
  **/



class m_login extends CI_Model
{
     var $table="sc_user";
     var $id_table="user_id";


	  public function __construct()
  	{  
      parent::__construct();

      $table="sc_user";
      $id_table="user_id";

    }

    public function process($user,$pass)
    {

      $this->db->where("user_name",$user);
      $this->db->where("user_password",$pass);
      $query=$this->db->get($this->table);
      return $query->result();

    }

}
?>